<template>
  <div>
    <span>请选择你喜欢的专栏</span><br />
    <div v-for="(val, index) in list">
      <span>{{ val }}</span
      ><input type="checkbox" :value="val" v-model="arr" />
    </div>
    <ul>
      <li v-for="(val, index) in arr">{{ val }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: [],
      list: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
    };
  },
  methods: {},
};
</script>

<style scoped>
</style>